Reason: ? sugar for option

Created on 30 Jul 2017  路  2Comments  路  Source: reasonml/reason

type foo = ?int

Parser RFC

Most helpful comment

is this worth the separation between option and all the other ADT's? the way it is now, option is a great introduction to how the type system works since a new user has to internalise it to use it, if that makes sense.

All 2 comments

Should the ? be suffix to match the syntax for optional parameters?

is this worth the separation between option and all the other ADT's? the way it is now, option is a great introduction to how the type system works since a new user has to internalise it to use it, if that makes sense.

Was this page helpful?
0 / 5 - 0 ratings