[#64703] Add `Hash#fetch_at` (issue #10017) — Wojtek Mach <wojtek@...>
Hey guys
1 message
2014/09/01
[#64711] [ruby-trunk - Bug #10193] [Closed] TestIO#test_readpartial_locktmp fails randomly — nobu@...
Issue #10193 has been updated by Nobuyoshi Nakada.
3 messages
2014/09/02
[#64744] [ruby-trunk - Bug #10202] [Open] TestBenchmark#test_realtime_output breaks on ARM — v.ondruch@...
Issue #10202 has been reported by Vit Ondruch.
3 messages
2014/09/03
[#64823] documenting constants — Xavier Noria <fxn@...>
I am writing a Rails guide about constant autoloading in Ruby on
5 messages
2014/09/07
[#64838] [ruby-trunk - Bug #10212] [Open] MRI is not for lambda calculus — ko1@...
Issue #10212 has been reported by Koichi Sasada.
6 messages
2014/09/08
[#64858] Re: [ruby-trunk - Bug #10212] [Open] MRI is not for lambda calculus
— Eric Wong <normalperson@...>
2014/09/08
rb_env_t may use a flexible array, helps a little even on my busy system:
[#64871] Re: [ruby-trunk - Bug #10212] [Open] MRI is not for lambda calculus
— SASADA Koichi <ko1@...>
2014/09/08
(2014/09/08 19:48), Eric Wong wrote:
[#64972] [ruby-trunk - Bug #10231] [Open] Process.detach(pid) defines new singleton classes every call — headius@...
Issue #10231 has been reported by Charles Nutter.
3 messages
2014/09/11
[#64980] [ruby-trunk - Bug #10212] MRI is not for lambda calculus — ko1@...
Issue #10212 has been updated by Koichi Sasada.
4 messages
2014/09/12
[#65142] [ruby-trunk - Feature #10267] [Open] Number of processors — akr@...
Issue #10267 has been reported by Akira Tanaka.
4 messages
2014/09/20
[#65144] Re: [ruby-trunk - Feature #10267] [Open] Number of processors
— Eric Wong <normalperson@...>
2014/09/20
akr@fsij.org wrote:
[#65210] [ruby-trunk - misc #10278] [Assigned] [RFC] st.c: use ccan linked list — nobu@...
Issue #10278 has been updated by Nobuyoshi Nakada.
3 messages
2014/09/22
[ruby-core:65329] [ruby-trunk - Feature #9999] Type Annotations
From:
shevegen@...
Date:
2014-09-30 13:10:25 UTC
List:
ruby-core #65329
Issue #9999 has been updated by Robert A. Heiler.
I like the principal idea behind it.
For instance, today I wrote ruby code like this (yes, hate me for using set_ methods
but I like it visually because my brain works that way):
def set_be_verbose(i)
@be_verbose = i
end
@be_verbose can only be true or false, and must never be any value.
It can also only be modified through that accessor method above.
I thought it would be nice if I could somehow tell ruby to check automatically.
Of course I could check the input for FalseClass or TrueClass or something
but I wondered if it would not be better to also provide an additional
OPTIONAL way.
At any rate, I like the idea behind this - my main concern is only the
syntax.
The syntax proposal:
def connect(r -> Stream, c -> Client) -> Fiber
I am sorry, that is awful. It would conflict with my ruby code (I do not
use ->) and the intent is not clear at all to me.
def connect(Stream r, Client c) -> Fiber
This is a bit better but it also uses -> and thus it really is not good
at all.
If we would not have to be backwards compatible we could use @@ hehe :)
At any rate, please consider the syntax! I picked ruby because it is
by far the most elegant language out there (actually, that is not
completely true, I picked ruby over python because of its philosophy
from matz' old interview from back then at: http://www.artima.com/intv/ruby.html
it really still is my favourite interview from matz hehe)
----------------------------------------
Feature #9999: Type Annotations
https://bugs.ruby-lang.org/issues/9999#change-49144
* Author: Davide D'Agostino
* Status: Assigned
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category:
* Target version:
----------------------------------------
Hi all,
I know @matz is interested in introducing **type annotations** in ruby. More here: https://bugs.ruby-lang.org/issues/5583
I think it's time for ruby to get this.
Before working on a patch I would like to know:
1. Syntax of methods signatures
2. Syntax of variables guards (?)
3. Implementation
For point **1** I was thinking in some like:
~~~ruby
def connect(r -> Stream, c -> Client) -> Fiber
def connect(Stream r, Client c) -> Fiber # quite sure this will make some reduce problems in the grammar
~~~
Before making a proposal consider: keyword arguments and default value collisions.
Then for point **2** I'm not sure if we want also check assignments but as before a syntax could be:
~~~ruby
r: Client = something # will throw an exception if something is not kind of Client
~~~
Finally, **implementation**. Do we want some in python style and then leave the programmer/library for the implementation **or** (and I'm for this) we want MRI do that, if so how?
Cheers!
DD
p.s. Sorry if this issue was already discussed but I didn't find anything except the link posted.
--
https://bugs.ruby-lang.org/