JuliaInterop / JuliaInterop/MathLink.jl

Interpolation in W_cmd

Open
#24 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
146
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Currently you can't interpolate into W_cmd's, quoting from the PR:

W`Sin[$(1+1)]` # W"Sin"(2)

The main challenge with this is that $ is allowed to be used in a variable name (see >here). I'm not sure how best to do this, but perhaps open a new issue to discuss it.

Originally posted by @simonbyrne in https://github.com/JuliaInterop/MathLink.jl/pull/19#issuecomment-528454524

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the W_cmd entry point and compare its current parsing with the example WSin[$(1+1)]. Investigate how Julia variable names containing $ are distinguished from interpolation syntax. Done means a decided interpolation behavior that handles this ambiguity and is covered by relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.