Lifting Safety and Type

I am studying the elevator now. When I read about templates, I realized that they have a lot of things that are not checked at compile time:

  • Templates may contain links to nonexistent fragments.
  • SiteMaps may link to non-existent pages
  • Fragment sending methods accept string parameters where we can easily make a typo

Are there any alternatives to make these problems less serious, i.e. external code verification or parameters in the library that would allow to do the same, but with a safe type? Or maybe there is another web structure that is more strict in this regard (maybe in another language).

+5
source share
1 answer

- , Scala Java, . Banana, Meat, String Int. , , Ruby Javascript,

, , . , , , , .

, , :

public boolean isTrue(boolean value){
        return !value;
}

, , ?

 <!-- importing a snippet depending on the value of a variable -->
 <import src="${snippetName}.xml"/>

, . .

+1

All Articles