Skip to content

Comment on Wasp: WASM Programming Languageparent

Comments

This really just seems to be ML-style syntax - which is not ambiguous at all, it's just different from C-like languages (functions applied one argument at a time, with function application (empty space) having the biggest precendece)

Is it one of these?

  fibonacci (it) - 1 + fibonacci (it) - 2
  fibonacci (it - 1) + fibonacci (it - 2)
  fibonacci (it - 1 + fibonacci (it - 2))

On any sane ML-style language, it would be this:

    (fibonacci it) - 1 + (fibonacci it) - 2
But I guess it isn't the case here, because that code doesn't make sense.

In this case (and if it were interpreted as Haskell syntax), the above term would be wrong.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.