#GADTs

1 messages · Page 1 of 1 (latest)

lilac acorn
#

Will Gleam ever add GADTs? Just curious as while they’re niche and difficult, these are really killer useful when you do need them.

chrome osprey
#

#general message

#

tldr: no

lilac acorn
cobalt quest
#

Niche and difficult is like the polar opposite of what we’re aiming for!

lilac acorn
#

I guess my response to that is — they can be pretty safely ignored for many cases so they don’t increase the complexity of most existing code but when you do need them, you really need them and they then simplify code. But I understand the goal.

#

And not just useful for writing parsers

#

jigglypuff I’m not complaining though

chrome osprey
#

I love complex language features until I have to read code using them written by other people (or past me) 😂

cobalt quest
#

Yeah there are languages that have that philosophy but gleam isnt one of them ^.^ we design features that are broadly applicable and easily understood, so niche features that are powerful in specific situations are a bit out of scope for us

pseudo kindle
#

If you've got some real problems that might be solved with them do share!