You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The return types of picture, animation, and game are pretty intense for newcomers, particularly those not super comfortable with advanced type signatures. Additionally, they are hard-coded with internal types which causes confusion. I think hiding that behind a type alias would make the experience much more approachable. Something like:
type alias PictureProgram=Platform.Program()Screen(Basics.Int,Basics.Int)type alias AnimationProgram=Platform.Program()AnimationMsgtype alias GameProgram memory =Platform.Program()(Game memory)Msg
This would allow folks to write programs like:
main:PictureProgrammain =
picture [ circle blue 40]
or
main:AnimationProgrammain =
animation view
or
main:GameProgramMemorymain =
game view update initialMemory
The text was updated successfully, but these errors were encountered:
The return types of
picture
,animation
, andgame
are pretty intense for newcomers, particularly those not super comfortable with advanced type signatures. Additionally, they are hard-coded with internal types which causes confusion. I think hiding that behind a type alias would make the experience much more approachable. Something like:This would allow folks to write programs like:
or
or
The text was updated successfully, but these errors were encountered: