Skip to content

Clarification about Builtins in docs/pages/libraries.md #83

Answered by edubart
stefanos82 asked this question in Q&A
Discussion options

You must be logged in to vote

The string is builtin type, but methods for it are not, because they generate runtime code. In Nelua you usually need to require a module for APIs that generates runtime code, because what runtime to include is the user choice by design.

Can we make clearer which functions are actually builtin and which are not?

The documentation already state what functions are builtin, that is, just the functions from "builtins" section from that page. Any other function or method not there will be only available through a module imported with require. Though many modules like io already requires 'string'. Aside from those builtin functions there are builtin types, like int64, float64, etc, and string

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by edubart
Comment options

You must be logged in to vote
4 replies
@edubart
Comment options

@edubart
Comment options

@stefanos82
Comment options

@stefanos82
Comment options

Comment options

You must be logged in to vote
6 replies
@stefanos82
Comment options

@edubart
Comment options

@stefanos82
Comment options

@edubart
Comment options

@stefanos82
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants