Project

General

Profile

Actions

Feature #17640

closed

allow // for comments

Added by foonlyboy (Eike Dierks) about 3 years ago. Updated about 3 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:<unknown>]

Description

  • ruby uses '#' for comments (from the sh heritage)
  • js and css use '//' for comments (from the C++ heritage)

I'd like to discuss,
to allow '//' in ruby code for comments

Motivation:

  • writing comments is good
  • it's cumbersome to adapt the comments to the language currrently active

Impact:

Please check:

  • '//' is not a token in ruby?
  • there is no way to make a legal expression involving '//'?
  • oops ... the empty regexp literal is //

This is where the things get complicated
in terms of full backwards compatibility.

But I think that can be done.
'//i' is a legal expression,
while '// i' never was?

Anyways, I just want to put this on for a first discussion.

Actions

Also available in: Atom PDF

Like0
Like0Like0