Project

General

Profile

Actions

Misc #19772

closed

API naming for YARP compiler

Misc #19772: API naming for YARP compiler

Added by jemmai (Jemma Issroff) over 2 years ago. Updated about 2 years ago.

Status:
Closed
Assignee:
-
[ruby-core:114222]

Description

We are working on the YARP compiler, and have the first PR ready which introduces the YARP compile method. Our only outstanding question before merging it is about naming. How should we expose the public API for YARP's compile method?

Potential suggestions:

  1. YARP.compile
  2. RubyVM::InstructionSequence.compile(yarp: true)
  3. RubyVM::InstructionSequence.compile_yarp
  4. Any of the above options, with a name other than yarp (please suggest an alternative)

Regarding option 1, which would mirror YARP.parse, is the top level constant YARP acceptable?

cc @matz (Yukihiro Matsumoto) @ko1 (Koichi Sasada)

Actions

Also available in: PDF Atom