Giter Club home page Giter Club logo

Comments (7)

LensPlaysGames avatar LensPlaysGames commented on May 27, 2024

What happens if you do (foo) as! ... instead of foo() as! ...

from lensorcompilercollection.

MrMugame avatar MrMugame commented on May 27, 2024

5head, that works. So is this the way to cast function calls now? Doesn't look to bad tbh, but at least I didn't really find it idiomatic especially the case without the outside perens, where the vardecl is cast.

from lensorcompilercollection.

LensPlaysGames avatar LensPlaysGames commented on May 27, 2024

In general, a function call is (function ...args), like LISP. No parens for arguments are needed. And, the parens are just a paren expression, for grouping, so they are not always needed.

I'd agree there are still some edge cases I'm not happy with but I won't work on those until I get back onto Intercept itself (not LCC)

from lensorcompilercollection.

MrMugame avatar MrMugame commented on May 27, 2024

So maybe also label this with somekind of fix when somebody feels like it label? Or write it in todo
Would just be dumb if issues get rediscovered over and over again (I see myself doing that) and I don't want to search in closed issues for things that are potentially still issues

from lensorcompilercollection.

LensPlaysGames avatar LensPlaysGames commented on May 27, 2024

There is no issue here to fix. foo() is not a function call, it's a function followed by a paren expression.

Due to deproceduring, this would actually be a function call with the first argument as an empty paren expression

from lensorcompilercollection.

MrMugame avatar MrMugame commented on May 27, 2024

What is this then?
Bildschirmfoto 2023-11-09 um 01 11 07

from lensorcompilercollection.

LensPlaysGames avatar LensPlaysGames commented on May 27, 2024

It looks like a screenshot from one of the parser source files of the compiler, all of which I did not write and am not working on right now.

from lensorcompilercollection.

Related Issues (20)

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.