hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 17d72b50c8fb614dd12fcec11dd2cd8754be0ebe
parent 6779fab30939b61a427f0934f068539f1e6717c1
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Thu,  2 Sep 2021 10:10:08 +0000

hare::types::lookup_builtin: simplify

Signed-off-by: Eyal Sawady <ecs@d2evs.net>

Diffstat:
Mhare/types/lookup.ha | 12++++--------
1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/hare/types/lookup.ha b/hare/types/lookup.ha @@ -16,11 +16,7 @@ export fn dealias(t: *_type) const *_type = { export fn lookup_builtin( store: *typestore, _type: ast::builtin_type, -) const *_type = { - // TODO: &ast::type { ... } - const atype = ast::_type { - repr = _type, - ... - }; - return lookup(store, &atype)!; -}; +) const *_type = lookup(store, &ast::_type { + repr = _type, + ... +})!;