Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discussion: candidates for fundamental features/methods to add to Goby #781

Open
hachi8833 opened this issue Sep 23, 2019 · 2 comments
Open
Assignees

Comments

@hachi8833
Copy link
Member

hachi8833 commented Sep 23, 2019

I listed the following candidates of methods/features to add to Goby:

  • string interpolation #{}
  • formatted print (I guess we don't need to persist to C's printf sprintf or like that)
  • Object#dup
  • Object#tap
  • Object#method
  • Marshal class and dump, load
  • Kernel#autoload and Kernel#autoload?
  • safe navigation operator &.
  • a short hand &: for calling one method like [1, 2, 3].map(&:to_s)
  • (changing Object#send to Object#__send__
  • (freeze strings and integers as a default)

Anything else? @st0012

@st0012
Copy link
Member

st0012 commented Sep 27, 2019

I pick dup and tap.
As for Object#method, are we going to add Method#call or #source_location as well? So it will be more helpful.
(I remember Matz said that he regret adding autoload, are we sure about adding that 😆)

@hachi8833
Copy link
Member Author

Thank you for checking it!
I look into dup and tap first.

@st0012 st0012 self-assigned this Oct 13, 2019
@st0012 st0012 added this to the version 0.1.12 milestone Oct 13, 2019
@st0012 st0012 modified the milestones: version 0.1.12, version 0.1.13 Feb 16, 2020
@st0012 st0012 removed this from the version 0.1.13 milestone Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants