This HTML5 document contains 76 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

Namespace Prefixes

PrefixIRI
dctermshttp://purl.org/dc/terms/
yago-reshttp://yago-knowledge.org/resource/
dbohttp://dbpedia.org/ontology/
foafhttp://xmlns.com/foaf/0.1/
n16http://dbpedia.org/resource/%3F:
n5https://global.dbpedia.org/id/
yagohttp://dbpedia.org/class/yago/
dbthttp://dbpedia.org/resource/Template:
rdfshttp://www.w3.org/2000/01/rdf-schema#
freebasehttp://rdf.freebase.com/ns/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
owlhttp://www.w3.org/2002/07/owl#
dbpedia-zhhttp://zh.dbpedia.org/resource/
wikipedia-enhttp://en.wikipedia.org/wiki/
dbphttp://dbpedia.org/property/
provhttp://www.w3.org/ns/prov#
dbchttp://dbpedia.org/resource/Category:
xsdhhttp://www.w3.org/2001/XMLSchema#
wikidatahttp://www.wikidata.org/entity/
dbrhttp://dbpedia.org/resource/
dbpedia-jahttp://ja.dbpedia.org/resource/

Statements

Subject Item
dbr:Elvis_operator
rdf:type
yago:Cognition100023271 yago:Content105809192 yago:PsychologicalFeature100023100 yago:Concept105835747 yago:WikicatConditionalConstructs yago:Abstraction100002137 yago:Idea105833840
rdfs:label
埃尔维斯运算符 Elvis operator エルビス演算子
rdfs:comment
エルビス演算子 (英語: elvis operator) は、いくつかのプログラミング言語にある演算子で、字句構文は ?: である。三項条件演算子 (? :) と違い、この連続する2文字で1つの演算子であり、意味的には三項演算子の第二項 (<i>A</i> ? <i>B</i> : <i>C</i>の<i>B</i>) が無いもの、というような機能を持っている。 Null合体演算子に似た制御機能を持つが、第一項の扱いが異なる。ただし、エルビス演算子にNull合体演算子の意味と役割を持たせている言語もある。 编程语言中,埃尔维斯运算符是一种二元运算符,常写为?:、or、||,如果第一操作数求值为真则返回其值,否则返回第二操作数的值。类似于带有“最后值”语义的短路求值。埃尔维斯运算符是受三元条件运算符 ? :启发而被提出的。因为埃尔维斯运算符表达式A ?: B近似于三元条件运算符A ? A : B。 埃尔维斯运算符得名于它的通常表示法?:,相似于埃尔维斯·普雷斯利(即“猫王”)的颜文字侧脸的,或者其他角度看相遇于他的得意的笑脸。 有一个相似的运算符是空值结合运算符,把布尔真值检查改为是否为空指针null。常写为??,如C#。 In certain computer programming languages, the Elvis operator, often written ?:, is a binary operator that returns its first operand if that operand evaluates to a true value, and otherwise evaluates and returns its second operand. This is identical to a short-circuit or with "last value" semantics. The notation of the Elvis operator was inspired by the ternary conditional operator, <a href="/wiki/%3F:" class="mw-redirect" title="?:">? :</a> since the Elvis operator expression A ?: B is approximately equivalent to the ternary conditional A ? A : B.
dcterms:subject
dbc:Operators_(programming) dbc:Conditional_constructs dbc:Articles_with_example_code dbc:Binary_operations
dbo:wikiPageID
41975647
dbo:wikiPageRevisionID
1121400697
dbo:wikiPageWikiLink
dbr:Computer_programming dbr:Perl dbr:Ruby_(programming_language) dbr:Google_Closure_Tools dbr:PHP dbr:Pompadour_(hairstyle) dbr:Spaceship_operator dbr:JavaScript dbr:GNU_Compiler_Collection dbr:C_(programming_language) dbr:Ballerina_(programming_language) dbr:Gosu_(programming_language) dbr:Option_type dbc:Conditional_constructs dbr:Kotlin_(programming_language) dbr:Groovy_(programming_language) dbr:Xtend n16: dbc:Operators_(programming) dbr:Object_Pascal dbr:Short-circuit_evaluation dbr:Lua_(programming_language) dbr:Clojure dbr:C_Sharp_(programming_language) dbr:C++ dbr:ColdFusion dbr:Python_(programming_language) dbr:Null-coalescing_operator dbr:Common_Lisp dbr:Emoticon dbr:Null_coalescing_operator dbr:Conditional_operator dbr:Null_pointer dbc:Articles_with_example_code dbc:Binary_operations dbr:Elvis_Presley dbr:Fantom_(programming_language) dbr:CFML dbr:Safe_navigation_operator dbr:Binary_operator dbr:Ternary_operator
owl:sameAs
n5:29KaT yago-res:Elvis_operator dbpedia-ja:エルビス演算子 freebase:m.02vs57j wikidata:Q22682021 dbpedia-zh:埃尔维斯运算符
dbp:wikiPageUsesTemplate
dbt:Short_description dbt:About dbt:Reflist dbt:Main
dbo:abstract
编程语言中,埃尔维斯运算符是一种二元运算符,常写为?:、or、||,如果第一操作数求值为真则返回其值,否则返回第二操作数的值。类似于带有“最后值”语义的短路求值。埃尔维斯运算符是受三元条件运算符 ? :启发而被提出的。因为埃尔维斯运算符表达式A ?: B近似于三元条件运算符A ? A : B。 埃尔维斯运算符得名于它的通常表示法?:,相似于埃尔维斯·普雷斯利(即“猫王”)的颜文字侧脸的,或者其他角度看相遇于他的得意的笑脸。 有一个相似的运算符是空值结合运算符,把布尔真值检查改为是否为空指针null。常写为??,如C#。 エルビス演算子 (英語: elvis operator) は、いくつかのプログラミング言語にある演算子で、字句構文は ?: である。三項条件演算子 (? :) と違い、この連続する2文字で1つの演算子であり、意味的には三項演算子の第二項 (<i>A</i> ? <i>B</i> : <i>C</i>の<i>B</i>) が無いもの、というような機能を持っている。 Null合体演算子に似た制御機能を持つが、第一項の扱いが異なる。ただし、エルビス演算子にNull合体演算子の意味と役割を持たせている言語もある。 In certain computer programming languages, the Elvis operator, often written ?:, is a binary operator that returns its first operand if that operand evaluates to a true value, and otherwise evaluates and returns its second operand. This is identical to a short-circuit or with "last value" semantics. The notation of the Elvis operator was inspired by the ternary conditional operator, <a href="/wiki/%3F:" class="mw-redirect" title="?:">? :</a> since the Elvis operator expression A ?: B is approximately equivalent to the ternary conditional A ? A : B. The name "Elvis operator" refers to the fact that when its common notation, ?:, is viewed sideways, it resembles an emoticon of Elvis Presley with his signature hairstyle. A similar operator is the null coalescing operator, where the boolean truth check is replaced with a check for non-null instead. This is usually written ??, and can be seen in languages like C#.
prov:wasDerivedFrom
wikipedia-en:Elvis_operator?oldid=1121400697&ns=0
dbo:wikiPageLength
7984
foaf:isPrimaryTopicOf
wikipedia-en:Elvis_operator