starman@programming.dev to Programming@programming.devEnglish · 11 months agoUnison | A friendly, statically-typed, functional programming language from the future · Unison programming languagewww.unison-lang.orgexternal-linkmessage-square6fedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1external-linkUnison | A friendly, statically-typed, functional programming language from the future · Unison programming languagewww.unison-lang.orgstarman@programming.dev to Programming@programming.devEnglish · 11 months agomessage-square6fedilinkfile-text
minus-squaresteersman2484@sh.itjust.workslinkfedilinkarrow-up1·11 months agoThere are no imports, these are type annotations
minus-squarechristophski@feddit.uklinkfedilinkEnglisharrow-up0·11 months agoDo I really have to declare that something requires exceptions?
minus-squaresteersman2484@sh.itjust.workslinkfedilinkarrow-up1·11 months agoYes, in functional programming you want to use pure functions. Exceptions are impure, therefore it has to be declared. Other functional languages don’t even have exceptions
There are no imports, these are type annotations
Do I really have to declare that something requires exceptions?
Yes, in functional programming you want to use pure functions. Exceptions are impure, therefore it has to be declared.
Other functional languages don’t even have exceptions