Skip to content

The semantics of JS objects without using ppx #4974

@bobzhang

Description

@bobzhang

Since objects are now exclusive for JS objects, we don't need do the ppx any more. The ppx syntax is still preserved for compatibiilty but are going to be removed eventually.

x#hi (* property access *)
x#hi 1 2 (* property as a curried function call *)
x#hi 1 2 [@bs] (* property as  an uncurried function call*)

What is missed is method call, that is currently encoded as
x##hi 1 2 where hi is a method that has to be in the same place as arguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions