* [ruby-core:117392] [Ruby master Feature#20405] Inline comments
@ 2024-04-01 1:09 nobu (Nobuyoshi Nakada) via ruby-core
2024-04-01 8:41 ` [ruby-core:117395] " vo.x (Vit Ondruch) via ruby-core
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2024-04-01 1:09 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #20405 has been reported by nobu (Nobuyoshi Nakada).
----------------------------------------
Feature #20405: Inline comments
https://bugs.ruby-lang.org/issues/20405
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
----------------------------------------
I propose a new inline comment syntax.
```ruby
p (| This is a comment (| and nested one |) /:|) (:|) #=> :|
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:117395] [Ruby master Feature#20405] Inline comments
2024-04-01 1:09 [ruby-core:117392] [Ruby master Feature#20405] Inline comments nobu (Nobuyoshi Nakada) via ruby-core
@ 2024-04-01 8:41 ` vo.x (Vit Ondruch) via ruby-core
2024-04-01 8:53 ` [ruby-core:117396] " nobu (Nobuyoshi Nakada) via ruby-core
2024-04-16 19:44 ` [ruby-core:117539] " matheusrich (Matheus Richard) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: vo.x (Vit Ondruch) via ruby-core @ 2024-04-01 8:41 UTC (permalink / raw)
To: ruby-core; +Cc: vo.x (Vit Ondruch)
Issue #20405 has been updated by vo.x (Vit Ondruch).
I like this proposal. But there are other possibilities, such as:
~~~
(: This is comment :)
~~~
That would just underline Ruby as a "happy" language. Of course variants such as `(-: ... :-)` or even `(o: ... :o)` could even extend the expressiveness of comments
----------------------------------------
Feature #20405: Inline comments
https://bugs.ruby-lang.org/issues/20405#change-107555
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
----------------------------------------
I propose a new inline comment syntax.
```ruby
p (| This is a comment (| and nested one |) /:|) (:|) #=> :|
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:117396] [Ruby master Feature#20405] Inline comments
2024-04-01 1:09 [ruby-core:117392] [Ruby master Feature#20405] Inline comments nobu (Nobuyoshi Nakada) via ruby-core
2024-04-01 8:41 ` [ruby-core:117395] " vo.x (Vit Ondruch) via ruby-core
@ 2024-04-01 8:53 ` nobu (Nobuyoshi Nakada) via ruby-core
2024-04-16 19:44 ` [ruby-core:117539] " matheusrich (Matheus Richard) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2024-04-01 8:53 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #20405 has been updated by nobu (Nobuyoshi Nakada).
vo.x (Vit Ondruch) wrote in #note-1:
> I like this proposal. But there are other possibilities, such as:
>
> ~~~
> (: This is comment :)
> ~~~
Thank you for the comment, but you may know `(:` can conflict existing code.
The reason I selected `(|` is that `/:|)` is used as Matz's face (no beard version).
----------------------------------------
Feature #20405: Inline comments
https://bugs.ruby-lang.org/issues/20405#change-107556
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
----------------------------------------
I propose a new inline comment syntax.
```ruby
p (| This is a comment (| and nested one |) /:|) (:|) #=> :|
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:117539] [Ruby master Feature#20405] Inline comments
2024-04-01 1:09 [ruby-core:117392] [Ruby master Feature#20405] Inline comments nobu (Nobuyoshi Nakada) via ruby-core
2024-04-01 8:41 ` [ruby-core:117395] " vo.x (Vit Ondruch) via ruby-core
2024-04-01 8:53 ` [ruby-core:117396] " nobu (Nobuyoshi Nakada) via ruby-core
@ 2024-04-16 19:44 ` matheusrich (Matheus Richard) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: matheusrich (Matheus Richard) via ruby-core @ 2024-04-16 19:44 UTC (permalink / raw)
To: ruby-core; +Cc: matheusrich (Matheus Richard)
Issue #20405 has been updated by matheusrich (Matheus Richard).
I think, unironically, this could be a nice addition. Maybe with a syntax closer to the current comments?
```rb
p #= This is a comment #= and nested one =# =# :| => :|
```
----------------------------------------
Feature #20405: Inline comments
https://bugs.ruby-lang.org/issues/20405#change-107930
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
----------------------------------------
I propose a new inline comment syntax.
```ruby
p (| This is a comment (| and nested one |) /:|) (:|) #=> :|
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-04-16 19:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-01 1:09 [ruby-core:117392] [Ruby master Feature#20405] Inline comments nobu (Nobuyoshi Nakada) via ruby-core
2024-04-01 8:41 ` [ruby-core:117395] " vo.x (Vit Ondruch) via ruby-core
2024-04-01 8:53 ` [ruby-core:117396] " nobu (Nobuyoshi Nakada) via ruby-core
2024-04-16 19:44 ` [ruby-core:117539] " matheusrich (Matheus Richard) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).