You can not select more than 25 topics 
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long. 
		
		
		
		
		
			
	
	
		
			
	
		
			This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
		 
	
		
		
			
				
				
					
						
						
						
							---
 
						
						
						
							layout: post
 
						
						
						
							title: 华为仓颉语言使用体验
 
						
						
						
							tags: [华为, 仓颉, 体验]
 
						
						
						
							---
 
						
						
						
							
 
						
						
						
							  看看“自研”的轮子有什么特别之处?<!--more-->     
 
						
						
						
							
 
						
						
						
							# 起因
  
						
						
						
							 
						
						
						
							  申请之后过了几天就通过了, , , , , , ,  
						
						
						
							
 
						
						
						
							# 编写体验
  
						
						
						
							, , , , :  
						
						
						
							```kotlin
  
						
						
						
							main ()  { 
 
						
						
						
							    for  ( i  in  1. . 10 )  { 
 
						
						
						
							        for  ( j  in  1. . i  +  1 )  { 
 
						
						
						
							            print ( " ${j} * ${i} = ${i*j} \t " ) 
 
						
						
						
							        } 
 
						
						
						
							        println () 
 
						
						
						
							    } 
 
						
						
						
							} 
 
						
						
						
							``` 
 
						
						
						
							  编译之后运行倒是没什么问题,随后再写个递归版的试试看:
 
						
						
						
							```kotlin
  
						
						
						
							func  row ( i :  Int ):  Unit { 
 
						
						
						
							    if ( i  <  10 ){ 
 
						
						
						
							        col ( i ,  1 ) 
 
						
						
						
							        println () 
 
						
						
						
							        row ( i  +  1 ) 
 
						
						
						
							    } 
 
						
						
						
							} 
 
						
						
						
							
 
						
						
						
							func  col ( i : Int ,  j : Int ):  Unit { 
 
						
						
						
							    if ( i  >=  j ){ 
 
						
						
						
							        print ( " ${j} * ${i} = ${i*j} \t " ) 
 
						
						
						
							        col ( i ,  j  +  1 ) 
 
						
						
						
							    } 
 
						
						
						
							} 
 
						
						
						
							
 
						
						
						
							main ()  { 
 
						
						
						
							    row ( 1 ) 
 
						
						
						
							} 
 
						
						
						
							``` 
 
						
						
						
							  运行也没有问题, ? , , ,  
						
						
						
							  另外我在Github上搜了一下, , , , ,  
						
						
						
							  不过如果仓颉主要是给鸿蒙Next用的话, ,  
						
						
						
							
 
						
						
						
							# 对仓颉语言的看法
  
						
						
						
							, , , , , , , , ? , , , ( ) ( ) , , , , ,  
						
						
						
							  但是要说这个语言有什么特别之处目前似乎也看不出来, , , , ( , ) , ( ) , ( ) , , , , , , , , , ( )  
						
						
						
							  另外鸿蒙Next好像也会搞PC版, , , ,  
						
						
						
							  不过如果用户侧如果搞不好的话说不定可以在服务器上用,毕竟服务器的话只在乎能不能写出这个软件,至于用什么语言写其实不重要,只要性能好就行,如果华为能整一批写仓颉的学生,还能把该整的库整好,也许会有公司考虑用,在做政府相关的项目说不定可以作为卖点🤣。   
 
						
						
						
							
 
						
						
						
							# 感想
  
						
						
						
							 
						
						
						
							  但正因为它们营销搞太多了,到时候因为搞这些东西把公司玩死了我觉得也是大快人心的🤣🤣🤣。