Skip to content

Golang user-defined functions #2498

Answered by myitcv
joshuamorris3 asked this question in Q&A
Discussion options

You must be logged in to vote

This sort of extensibility will be covered by the WebAssembly (Wasm) work that we are doing: #2463. Such Wasm modules will then be distributed via modules (#2330). In this way, people will not be limited by the standard library of builtins that we (currently) offer.

That said, there are often strong arguments for making something part of the standard library. I would suggest that mail.ParseAddress comes pretty close to passing an as-yet-undefined threshold for inclusion. Please can you raise a feature request to that end if you would like this added? It feels ok to me, but a feature request will help to confirm.

(Incidentally, we also somewhat envisage a Go-like cuelang.org/x/... namespac…

Replies: 4 comments 4 replies

Comment options

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

@myitcv
Comment options

@myitcv
Comment options

@verdverm
Comment options

Answer selected by joshuamorris3
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants