Re:Oden: experimental, statically-typed functional language,...
by bryanlarsen on Friday February 26, 2016 @04:05PM
(#11184226)
:: is what Haskell uses, and this is a Haskell derivative.
[ Parent
| on HN ]
Re:Oden: experimental, statically-typed functional language,...
by thinkpad20 on Friday February 26, 2016 @04:22PM
(#11184346)
I'm a bit disappointed by the double colon; it's my least favorite part of Haskell syntax (I probably shouldn't care, but there you go). It also bugs me in PureScript. However, Agda, Idris, and Elm, all of which have syntax heavily inspired by Haskell, all do it the "right way", so there's no reason a Haskell-inspired language can't. Plus, this doesn't look that much like Haskell, certainly not to the point of being derivative.
Re:Oden: experimental, statically-typed functional language,...
by whateveracct on Friday February 26, 2016 @07:18PM
(#11185345)
Haskell is a bit of the odd man out in terms of syntax for type annotations. Scala, OCaml, Agda, Idris, Elm all use single colon. I'm actually unsure why Haskell is the way it is.
Re:Oden: experimental, statically-typed functional language,...
by hollerith on Friday February 26, 2016 @07:21PM
(#11185361)
Haskell's designers wanted single colon for the cons operator, and the cons operator is legal on the left-hand side of an "equation" (sorry, don't recall the official terminology) because Haskell allows pattern matching there.
(I'm not saying I agree with the decision.)
Re:Oden: experimental, statically-typed functional language,...
by gleenn on Friday February 26, 2016 @10:11PM
(#11185909)
Ruby...
Re:Oden: experimental, statically-typed functional language,...
by owickstrom on Friday February 26, 2016 @04:16PM
(#11184302)
Author here :) It's inspired by Haskell, yes, but not a dialect. Syntax is very much open for change still and that's really not the most important bit. Semantics are not like Haskell, more Go + polymorphism.
Re:Oden: experimental, statically-typed functional language,...
by nikolay on Friday February 26, 2016 @04:25PM
(#11184372)
I think those using Haskell can learn to use a single colon plus they will appreciate it better as the double colon steals too much visual attention.
Re:Oden: experimental, statically-typed functional language,...
by ApplaudPumice on Friday February 26, 2016 @09:41PM
(#11185808)
What I don't like about Haskell is repeating the function name.
yeah :: Num yeah = 3
repeating yeah two times is ugly.
Re:Oden: experimental, statically-typed functional language,...
by nikolay on Wednesday March 02, 2016 @12:31PM
(#11211440)
Ugliness is not the biggest issue - not being DRY is!
Re:Oden: experimental, statically-typed functional language,...
by nikolay on Friday February 26, 2016 @04:13PM
(#11184289)
Why not call it Goskell then? If it's a different language, it should improve on some legacy stuff.
Re:Oden: experimental, statically-typed functional language,...
by cgag on Friday February 26, 2016 @04:17PM
(#11184314)
could have a skeleton version of the gopher for a logo
Re:Oden: experimental, statically-typed functional language,...
by nikolay on Friday February 26, 2016 @04:27PM
(#11184384)
I was thinking about Gaskell first, but the "gas" prefix was weird.
Re:Oden: experimental, statically-typed functional language,...
by cpeterso on Friday February 26, 2016 @05:30PM
(#11184782)
Or Hasgol or just Hasgo?