question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Variable reference

See original GitHub issue

Is it currently possible to have variable referencing? Just like here > https://github.com/vlucas/phpdotenv#nesting-variables

BASE_DIR="/var/webroot/project-root"
CACHE_DIR="${BASE_DIR}/cache"
TMP_DIR="${BASE_DIR}/tmp"

I have item A and B. Item A is very long and shares more than 90% of its configuration with B. I would like to do something like:

default:
  item_a:
    name: 'A'
    ... many other fields
    ...
  item_b:  [extend item_a] 
    name: 'B'
    ... same other fields as A

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rochacbrunocommented, Jul 27, 2020

@telemmaite fixed in master, pending a release

1reaction
rochacbrunocommented, Jul 14, 2020

Update: Working on this issue, found the problem on DynaBox.get method and a recursive solution must be implemented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reference Variable in Java - GeeksforGeeks
1. Reference variable is used to point object/values. · 2. Classes, interfaces, arrays, enumerations, and, annotations are reference types in ...
Read more >
What is a reference variable in C++? - Tutorialspoint
Reference variable is an alternate name of already existing variable. It cannot be changed to refer another variable and should be ...
Read more >
Pass By Reference vs. Pass By Value
Reference Variables. A reference variable is a nickname, or alias, for some other variable; To delare a reference variable, we use the unary...
Read more >
Declaring a Reference Variable
There are several ways to declare a reference variable: ClassName variableName;. This declares a reference variable and declares the class of the object...
Read more >
Primitive and reference variables - Java Programming MOOC
Variables in Java are classified into primitive and reference variables. From the programmer's perspective, a primitive variable's information is stored as the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found