What does sky-scrapper mean?

拈花ヽ惹草 提交于 2019-12-10 23:52:53

问题


In this answer there is a Prolog predicate with the comment

% replace OR sky-scrapper with call to new predicate

Googling has no results for the first few pages that I see to explain its meaning.

What is the meaning and origin of sky-scrapper as used in the comment?


回答1:


In the example code in link, the OP has used below style

  (  ":",       !, { Token = tokColon }
  ;  "(",       !, { Token = tokLParen }
  ;  ")",       !, { Token = tokRParen }
  ;  "{",       !, { Token = tokLMusta}
  ;  "}",       !, { Token = tokRMusta}
  ;  "\\",      !, { Token = tokSlash}
  ;  "->",      !, { Token = tokImpl}
  ;  "+",       !, { Token = tokPlus }
  ;  "-",       !, { Token = tokMinus }
  ;  "*",       !, { Token = tokTimes }
  ;  "=",       !, { Token = tokEqual }
  ;  "<",       !, { Token = tokLt }
  ;  ">",       !, { Token = tokGt }
  ;  "_",       !, { Token = tokUnderscore }
  ;  ".",       !, { Token = tokPeriod }
  ;  "/",       !, { Token = tokForwardSlash }
  ;  ",",       !, { Token = tokComma }
  ;  ";",       !, { Token = tokSemicolon }

this snippet is long(tall) like sky scraper, and thats why terminology is used IMHO

and so OP is suggested to replace it with a more proper snippet, this are mostly to produce more readable and maintainable code




回答2:


I think it's a typo for "skyscraper". The code example is probably solving a skyscraper puzzle.

Optimizing pathfinding in Constraint Logic Programming with Prolog



来源:https://stackoverflow.com/questions/54276252/what-does-sky-scrapper-mean

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!