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.

Optional imports/parameter declaration

See original GitHub issue

Hello, are parameters strictly obligatory? With Qute, parameter declaration is optional, I like that I can basically just do:

template.data("pojo", pojoInstance).render();

And in my HTML page I can just acess the “pojo” variable without doing any imports or any parameter declaration. Are imports and parameter declarations always required with JTE?

JTE’s performance is very atractive but I think usabillity seems to be not on par with qute or pebble, which dont require imports or parameter declaration.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
newk5commented, Mar 6, 2022

Yea I’m a Netbeans user so I cant make use of the plugin, which is why my usability is not so good plus having to declare imports and params for every file.

0reactions
newk5commented, Mar 6, 2022

I use Qute without a plugin too and I find it very pleasant to use. I think jte too would be just as pleasant to use even without a plugin if the imports/params were optional/non-obligatory, but I see your point, the plugin does help alot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implementing optional parameters in the function import
While creating function imports via the SEGW (project builder) transaction, we don't have a provision of marking parameters as optional.
Read more >
How to declare IN, OPTIONAL parameter along with OUT ...
The [optional] attribute is useful when a compiler uses the type library to import declarations. They typically also rewrite the function so the ......
Read more >
Java optional parameters in practice | Dev in Web
Learn how to work with optional parameters in Java. See how to simulate default parameter in methods and object constructors.
Read more >
methods - importing, exporting, changing, raising
IMPORTING defines input parameters. When the method is called, an appropriate actual parameter must be specified for every non-optional input parameter.
Read more >
Declaration emit adds unnecessary import types · Issue #47849
When it's optional, under strictNullChecks , it creates a new type identity unioned with undefined and prints that new type, so it doesn't ......
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