Line End Marker

About Monkey 2 Forums Monkey 2 Development Line End Marker

This topic contains 1 reply, has 2 voices, and was last updated by  codifies 2 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5666

    arpie
    Participant

    Have I imagined it or did Monkey1 allow use of semicolons for line ends? Is there something similar in Monkey2? It would be nice to be able to write things like :

    Property thing:Int(); Return _thing; End

    Is this already possible?

    #5675

    codifies
    Participant
    [/crayon]

    isn’t ideal in terms of readability but yeah, there are times when a number of different statement would be neater on a single line – empty extern methods for example.

    is there any reason that white space couldn’t be more meaningful to the parser for example

    [/crayon]

    there is nothing valid to be had after ) so why not assume the code bock has stated (even on the same line) expressions like the return statement do need some EOL marker because often expressions are more readable with embedded spaces.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.