Alexandre Terrasa

Results 73 comments of Alexandre Terrasa

The main missing part would be https://github.com/ruby/rbs/pull/2398.

With https://github.com/ruby/rbs/pull/2398, `ruby.h` isn't required anymore. Here's how we use it from Sorbet (C++ implementation): https://github.com/sorbet/sorbet/blob/master/rbs/rbs_common.h#L5 and we don't need the Ruby VM.

@soutaro we use it in Sorbet to represent the type of the attached class to a singleton. It's useful around factories, here's a simple example: ```rb class Box extend T::Sig...

> Let me confirm the semantics: the type singleton(T)[S, ...] means that a class object of T but the instance created through the value of the type is T[S, ...]....

Je ré-ouvre en taguant TODO, je vais pouvoir réactiver les options avec la lib de Julien.

It looks like `MAP_ANONYMOUS` is not available. I though it was POSIX 🤔 We may need to provide a fallback. Working on a fix in https://github.com/ruby/rbs/pull/2470.

> pour permettre de documenter les aspects mathématiques d'une méthode Avec modération alors. Rien ne vaut un bon vieux nitunit.

Even with `-a.x` my first guess will be that it's equal to `(-a).x` more than `-(a.x)`.