From: Peter Hickman Date: 2013-04-25T23:42:50+09:00 Subject: Re: Ruby multiline comments and Coffee --047d7b604a5608488304db3051be Content-Type: text/plain; charset=ISO-8859-1 On 25 April 2013 14:48, Jan Berdajs wrote: > 1. I am aware of the current syntax of multiline comments. Like I said > in my original post, I think the current syntax for multiline comments > (=begin and =end) is one of the worst syntaxes I've ever seen in any > language. This is why I am proposing to consider something like Coffee's > ###. > > You haven't seen Xquery comments then :) If you really wanted a better block comment then something like Lua's comments would work --[[ this is a block comment --]] and this --[[ this is a block comment --[=[ this is a nested comment --]=] this is part of the outer comment --]] 2. Mentioning IDE features as an argument is a void argument. I can have > an IDE that translates code to binary format, does this mean that > programming languages where you have to write code in binary have a good > syntax? > The fact that the ide can make a minor niggle such as block comments completely irrelevant is not to be over looked The problem that I can see with the ### style of block comment is that inserting ### somewhere in the file will invert all the existing blocks and the only way of telling that this has happened is if your ide graciously colours your code in such a way to tell you about this little slip. Again the ide comes to the rescue :) If you want to write binary you should do it like a real man ... $ cat > a.out --047d7b604a5608488304db3051be Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On 25 April 2013 14:48, Jan Berdajs <= lists@ruby-forum.= com> wrote:
1. I am aware of the current syntax of multiline comments. Like I said
in my original post, I think the current syntax for multiline comments
(=3Dbegin and =3Dend) is one of the worst syntaxes I've ever seen in an= y
language. This is why I am proposing to consider something like Coffee'= s
###.


You haven't seen Xquery comm= ents then :)

If you really wanted a be= tter block comment then something like Lua's comments would work

--[[
this is a block commen= t
--]]

and this
<= div style>
--[[
this is a block comment=
--[=3D[
this is a nested comment
--]=3D]
this is part of the outer comment
--]]


2. Mentioning IDE features as an argument is a void argument. I can have an IDE that translates code to binary format, does this mean that
programming languages where you have to write code in binary have a good syntax?

The fact that the ide can= make a minor niggle such as block comments completely irrelevant is not to= be over looked

The problem that I can= see with the ### style of block comment is that inserting ### somewhere in= the file will invert all the existing blocks and the only way of telling t= hat this has happened is if your ide=A0graciously=A0colours your code in su= ch a way to tell you about this little slip. Again the ide comes to the res= cue :)

If you want to write binary you should do i= t like a real man ...

$ cat > a.out=

--047d7b604a5608488304db3051be--