Questions tagged [declarative]

Declarative programming is a paradigm of expressing the logic of a computer program or computation without explicit describing its control flow.

365 questions
-1
votes
1 answer

How create a single Prolog rule that match with more then a single words list?

I am having some problem to do a particular operation on a specific list. I have a list of tokens where a token represents a word and I want use a single predicate to recognize if some contiguous tokens in this list represent a date which may take…
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
-1
votes
1 answer

Prolog predicate that do a wrong use of or ;?

I am having some problem to do a specific operation on a specific list. I have a list of tokens where a token represents a word and I want recognize if 5 contiguous tokens in this list, represents a date having the form: 12 Febbraio 1995 where 12 is…
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
-1
votes
2 answers

ADF Declarative component not being processed?

So as the title says, I made a declarative component but when I add it to a web page it just displays the tag, and not the content My tag >
Rodrigo Cavalcante
  • 1,577
  • 4
  • 14
  • 21
-2
votes
1 answer

What is the most concise way to generate strings of language anbncn using JavaScript without using loops?

To convey the merits of Lambda Calculus, and even JavaScript's ability to implement such (Turing-complete) formulas, I'd like to see the most elegant and concise way that one JS file could print the correct string of the following language, given a…
-3
votes
1 answer

Declarative coding or programmatic coding in Dojo Projects?

In my own experience, I like programmatic coding. To name a few benefits at here: Better performance: no need to parse. No switch between html and javascript: no html, everything in code(use css to control layout.) Easy to dynamically change the…
Sean Zhao
  • 1,506
  • 12
  • 12
1 2 3
24
25