Coder Social home page Coder Social logo

protypo's People

Contributors

bernardini avatar r-bernardini avatar riccardo-bernardini avatar

Watchers

 avatar  avatar

protypo's Issues

Add mod operator

Or, at least, a built-in function (but it shouldn't be too complex to add it as an operator)

Add match data to the result of match

At the moment function match returns a boolean value: match/no match. It would be useful to be able to
get also substring matching, kind of $1 etc. in Ruby and other languages. I imagine an ambivalent interface

m := match("jim, foo and bar", "f(o+)");
m.matched? -- Returns true
m(0)             -- Returns "foo"
m(1)             -- Returns "oo"

or maybe m.matches(0) (this would make it a Record_Interface)

Bug: it is not possible to write on a variable that holds a vector

The following code gives an error

q3 := split("aldo giovanni e    giacomo", " ");
q3 := split("nome;cognome;;email;x", ";");

The problem is due to the fact that when evaluating the LHS of the second assignment, we get an Array_Handler and the interpret would like to write to the Array_Handler, but this is not possible. We should stop one level earlier and return the Reference_Handler associated with q3.

It is not critical, considering the fact that it is a language for templates, but it can be annoying and should be solved.

Add 'case' structure

At the moment there is no case control structure, even if case is already a keyword. The utility of a case is not clear, though. We have no enumerative types, so the case would just be some syntactic sugar for if ... elsif ... elsif ... else ... end. Is it worth the effort?

Add 'varargin'

Add varargin, a "magical" variable that absorb all the remaining parameters given to a function, like in matlab/octave

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.