GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — purescript needs some JavaScript specific behaviors · Issue #10 · purescript-python/purescript-python

purescript needs some JavaScript specific behaviors #10

New issue
Copy link
New issue
Copy link
Open
#14
Open
purescript needs some JavaScript specific behaviors#10
#14
Copy link

Description

@thautwarm
thautwarm
opened on Feb 23, 2020
Issue body actions

https://github.com/purescript/purescript-effect/blob/master/src/Effect.js#L12

    return function () {
      return f(a())();
    };

where f is a purescript function. PureScript functions are curried, hence they must accept one and only one argument, but here they call it without arguments.

To speed up calling functions and making FFI easier, I think it could be better for each argument of purescript function has a default value () or None.

Activity

  1. lfkdsk commented on Feb 26, 2020

    @lfkdsk
    lfkdsk
    on Feb 26, 2020
    Collaborator
    More actions

    @thautwarm we could add default value in PySExpr (when gen define).

  2. thautwarm commented on Feb 27, 2020

    @thautwarm
    thautwarm
    on Feb 27, 2020
    MemberAuthor
    More actions

    @lfkdsk We have default values, and we re now using this for pspy.
    See https://github.com/purescript-python/purescripto/blob/2598fa4cbe276db19235b308fedbd817fc89c090/purescripto/workaround.py#L9

  3. thautwarm
    added a commit that references this issue on Mar 4, 2020

    0. codegen behavior: add default value `None` for each function argum…

    This issue will close once commit 7d2ab0f is merged into the 'master' branch.
    7d2ab0f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.