ka8725 (Andrey Koleshko)
- Login: ka8725
- Email: ka8725@gmail.com
- Registered on: 08/01/2014
- Last sign in: 07/13/2023
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 1 | 2 |
Activity
04/02/2020
-
03:14 PM Ruby Feature #16746: Endless method definition
- matz (Yukihiro Matsumoto) wrote in #note-7:
> I totally agree with the idea **seriously**, (far better than #5054, #5065 and #12241) but don't like the syntax. First I thought
> ...
How about this:
```python
def foo(a):
expression
```
05/05/2016
-
01:30 PM Ruby Feature #12350: Introduce Array#find! that raises an error if element not found
- Victor Shepelev wrote:
> I'm pretty unhappy that community/style guidelines are banning the straightforward and readable solution:
> ...
I'm not aware about the banning. Could you elaborate what is bad in your example? Basically I don'... -
11:22 AM Ruby Feature #12350 (Open): Introduce Array#find! that raises an error if element not found
- It would be great to have some function (like `Hash#fetch`) for `Array` that raises an exception if element not found by passed block in `find`.
For example:
~~~
[].find! { |el| el == 1 }
=> ElementError: element not found
~~~
...
01/21/2016
-
10:37 AM Ruby Feature #12012 (Rejected): Add Boolean method
- In Ruby we have methods with a capital letter which are used for implicit type casting. For example: `Array`, `String`, `Integer` and etc. But there is lack of one desired function that I recently define in all my projects - this is `Boo...